﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RHD.Common.Web.Components.Grid {
	public class GridColumnBuilder {
		internal string name;
		internal string title;
		internal string dataField;
		internal DataType dataType;
		internal bool active = true;

		public GridColumnBuilder Name(string s) {
			this.name = s;
			return this;
		}

		public GridColumnBuilder Title(string s) {
			this.title = s;
			return this;
		}

		public GridColumnBuilder Active(bool b) {
			this.active = b;
			return this;
		}

		public GridColumnBuilder DataField(string s) {
			this.dataField = s;
			return this;
		}

		public GridColumnBuilder DataType(DataType t) {
			this.dataType = t;
			return this;
		}
	}
}